palette: use INT_MAX instead of MAXINT
authorØyvind Kolås <pippin@gimp.org>
Mon, 26 Mar 2012 14:29:12 +0000 (15:29 +0100)
committerØyvind Kolås <pippin@gimp.org>
Mon, 26 Mar 2012 14:29:12 +0000 (15:29 +0100)
babl/babl-palette.c

index 8639ba9244fb193de83f0c63ef372dd0ba5a3a84..893bc6adffaf56782b91d90549fa5777168b38ae 100644 (file)
@@ -90,7 +90,7 @@ babl_palette_lookup (BablPalette *pal, int r, int g, int b, int a)
   else
     {
       int best_idx = 0;
-      int best_diff = MAXINT;
+      int best_diff = INT_MAX;
 
       for (idx = 0; idx < pal->count; idx++)
         {